<!DOCTYPE html>
<html>
<!--
This is a regression test for https://code.google.com/p/chromium/issues/detail?id=319069
-->
<head>
<style>
#margin-empty-polygon-0vertex { shape-inside: polygon(); shape-margin: 5px; }
#margin-empty-polygon-1vertex { shape-inside: polygon(1px 2px); shape-margin: 5px; }
#margin-empty-polygon-2vertex { shape-inside: polygon(1px 2px, 3px 4px); shape-margin: 5px; }
</style>
<body>
  <div>This test should not crash.</div>
  <div id="margin-empty-polygon-0vertex">Zero</div>
  <div id="margin-empty-polygon-1vertex">One</div>
  <div id="margin-empty-polygon-2vertex">Two</div>
  <script>
    if (window.testRunner)
        testRunner.dumpAsText();
  </script>
</body>
</html>
